Repository navigation
Conversation
Drive first-time visitors on developers.cloudflare.com directly toward the Cloudflare CLI (cf) rather than gating homepage commands behind the Wrangler/CF preference switcher: - Add a Get started with cf CTA (/cf/get-started/) and a copyable npm install -g cf command block to Hero.astro. - Remove the Wrangler/CF selector and variant wrappers from BuildFromScratch.astro, showing cf commands directly across Compute, AI, Storage & Databases, and Media, and repoint the Compute CTA to /cf/get-started/first-worker/. - Update BuildFromScratch tests and add a Hero test.
AI Review✅ Reviewed 👉 Fix in your agent 👈Fix the following review findings in PR #35862 (https://github.com/cloudflare/cloudflare-docs/pull/35862).
Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification.
- If you disagree, explain why.
- If you need clarification before deciding, ask those questions.
- Then share your plan for which issues to tackle and in what order.
After triaging, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.
The comment must come before the commit because the next review reads PR comments.
## Code Review
- C-0d9896b5 | src/components/landing/BuildFromScratch.astro:89 | Images command omits the `@` prefix that `cf` needs for file values
The Media tab's copyable command passes a path without the `@` prefix. The `cf` docs show file-upload and file-input flags taking `@<path>` values (`cf pages deployments create --worker-js @./_worker.js`, `cf ai to-markdown --files @first.html @second.pdf`, `cf observability tail --filters @filters.json`), so `--file ./image.png` sends the literal string `./image.png` rather than the image contents.
```txt
command: "cf images create --file ./image.png",
```Code Review
Commands
|
Review coverage🟡 1 ownership area needs approval. Suggested reviewers: @MohamedH1998
CODEOWNERS mappings for displayed areas (1)
|
|
Worker Preview URL: https://gh-docs-homepage-cf-cli.previews.developers.cloudflare.com |
Replace cf ai models list with a live inference prompt using @cf/google/gemma-4-26b-a4b-it, which is open to Free and Paid accounts without a license gate or deprecation notice, and widen the CommandBlock slightly so the command stays untruncated on desktop.
Live-testing --prompt showed that gemma-4-26b-a4b-it and qwen3.8-27b truncate at 16 tokens in text completion mode and glm-4.7-flash returns a 500 error. @cf/meta/llama-4-scout-17b-16e-instruct is open to Free and Paid accounts with no license gate and reliably returns a clean haiku.
Summary
Updates the homepage (
developers.cloudflare.com) to present Cloudflare CLI (cf) onboarding commands and calls to action directly rather than gating them behind the Wrangler/CF preference switcher./cf/get-started/) and a copyablenpm install -g cfcommand block to the homepage hero (Hero.astro).BuildFromScratch.astro, showingcfonboarding commands directly across all four primitive tabs (npx cf init my-app,cf ai run @cf/meta/llama-4-scout-17b-16e-instruct --prompt "Write a haiku about lava lamps",cf d1 create --name my-database, andcf images create --file ./image.png) and pointing the Compute CTA to/cf/get-started/first-worker/.BuildFromScratchcomponent tests and adds aHerocomponent test.Screenshots (optional)
Documentation checklist